// 引入变量和全局样式
@use "var.scss" as *;
@use "global.scss" as *;
.content-list {
    width: 100%;
    min-height: 18rem;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.section-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* 确保子元素在垂直方向上排列 */
    align-items: center;
    /* 子元素水平居中 */
}

.content-item {
    width: 100%;
    position: relative;
    /* 使每个 li 元素占满水平空间 */
    margin-bottom: 2rem;
    /* 可选：增加下边距 */
    border-radius: 1rem;
    /* 设置边框 */
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    /* 设置阴影 */
}

.box {
    width: 100%;
    display: flex;
    align-items: center;
    /* 子元素垂直居中 */
}

.box img {
    height: 20rem;
    width: 32rem;
    max-width: 50%;
    min-width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
            to bottom,
            rgba(102, 100, 100, 0.096),
            rgba(243, 239, 239, 0.767)
        ),
        url("https://static.linhaojun.top/aurora/articles/f7963a082ffe11e411b1514e4c35337c.jpg")
            center center no-repeat;
    background-size: cover;
    transition: opacity 0.3s ease-in-out;
    box-shadow: -1rem 0 1rem -1rem rgba(0, 0, 0, 0.5);
    /* 设置图片左侧阴影 */
    border-top-left-radius: 1rem;
    /* 设置左上角圆角 */
    border-bottom-left-radius: 1rem;
    /* 设置左下角圆角 */
    clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 0% 100%);
    /* 设置裁剪路径 */
}

.content {
    // flex: 1;
    /* 让内容部分占满剩余空间 */
    margin-left: 2rem;
    min-height: 16rem;
    position: relative;
    text-overflow: ellipsis;
    h3 {
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        text-overflow: ellipsis;
    }
    p {
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
        text-overflow: ellipsis;
    }
}

// flex: 1;

/* 让内容部分占满剩余空间 */

.corner-link {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 2rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    background: linear-gradient(
        to right,
        rgba(241, 139, 179, 0.8),
        rgba(240, 163, 135, 0.8)
    );
    border-top-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.night-mode .corner-link {
    color: #fff;
}

.sub-author-section {
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
}

// 作者
.author {
    border: none;
    color: currentColor;
    outline: 0;
    text-decoration: none;
    overflow-wrap: break-word;
    word-wrap: break-word;
    transition: all 0.2s ease-in-out 0s;
    cursor: pointer;
    font-size: 1.3rem;
}

// 创建时间
.create-time {
    margin-left: 1rem;
    font-size: 1rem;
}
